import http from "@/utils/http";
export function getCart(){
  return http({url:"/member/cart"})
}
//删除购物车的商品
export function deleteCarts(data){
  return http({url:"/member/cart",method:"delete",data})
}
//修改选中状态和数量的修改
export function putMemberCart(id,data){
  return http({url:`/member/cart/${id}`,data,method:"put"})
}
//全选
export function putMemberCartAll(data){
  return http({url:"/member/cart/selected",method:"put",data})
}
//获取购物车的数量
export function getCartsNumber(){
  return http({url:"/member/cart/count"})
}